Skip to content

Charting tool enhancements - Errors bars for Bar and Line chart#7117

Merged
cnathe merged 50 commits intodevelopfrom
fb_chartErrorBars
Oct 23, 2025
Merged

Charting tool enhancements - Errors bars for Bar and Line chart#7117
cnathe merged 50 commits intodevelopfrom
fb_chartErrorBars

Conversation

@cnathe
Copy link
Contributor

@cnathe cnathe commented Oct 13, 2025

Rationale

See related ui-components PR for rationale. This PR

Related Pull Requests

Changes

  • Addition of error bar support for bar and line charts with vertical error bars
  • New UI controls for aggregate method selection and error bar type configuration
  • Enhanced statistical functions for calculating standard deviation and standard error of the mean

cnathe added 23 commits October 7, 2025 17:05
…e if > 10 labels and wrapping text otherwise)
…or line chart and bar chart case with aggregate and aggErrorType
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds error bar functionality for bar and line charts in the charting tool, allowing users to display standard deviation or standard error of the mean when using mean aggregation. The changes enhance the existing visualization components to support error bars, including UI controls for configuration and statistical calculations for SD/SEM values.

Key changes include:

  • Addition of error bar support for bar and line charts with vertical error bars
  • New UI controls for aggregate method selection and error bar type configuration
  • Enhanced statistical functions for calculating standard deviation and standard error of the mean

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
timeChartHelper.js Updates error bar configuration to show vertical error bars
genericChartHelper.js Major refactoring to support error bars, axis text wrapping, and data aggregation
genericChartPanel.js Refactored chart panel to use shared data generation logic
genericChartAxisPanel.js Added UI controls for aggregate method and error bar selection
utils.js Enhanced data aggregation and value extraction to support error calculations
statistics.js Added standard error function and improved standard deviation calculation
plot.js Updated default tick overlap rotation angle
D3Renderer.js Enhanced error bar rendering and axis text wrapping functionality
geom.js Added vertical error bar configuration option
index.html Added LABKEY global variable initialization
utils.test.ts New test file for utility functions
statistics.test.ts New test file for statistical functions
Comments suppressed due to low confidence (1)

visualization/resources/web/vis/chartWizard/chartLayoutDialog/genericChartAxisPanel.js:1

  • The nullish coalescing operator (??) may not be supported in older browsers. Consider using a conditional check or logical OR (||) operator for better compatibility.
/*

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@cnathe cnathe requested a review from labkey-alan October 13, 2025 14:42
@cnathe cnathe self-assigned this Oct 13, 2025
@cnathe cnathe requested a review from labkey-alan October 15, 2025 22:06
@cnathe cnathe merged commit b7c4268 into develop Oct 23, 2025
7 of 8 checks passed
@cnathe cnathe deleted the fb_chartErrorBars branch October 23, 2025 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants